<%@page import="models.Barang" %>
<% Barang obj = (Barang) request.getAttribute("object");%>

<h1>Detail Barang</h1>
<form action="<%=request.getContextPath()%>/barang/update" method="POST">
    <table>
        <tr><td><label>Gambar</label></td><td><img class="item-image" alt=""  src="<%= request.getContextPath() + "/" + (obj != null ? obj.path_gambar : "")%>"></td></tr>
        <tr><td><label>Kategori</label></td><td><label><%= obj != null ? obj.getCategoryName() : ""%></label></td></tr>
        <tr><td><label>Nama Barang</label></td><td><label><%= obj != null ? obj.nama : ""%></label></td></tr>
        <tr><td><label>Harga Satuan</label></td><td><label><%= obj != null ? obj.harga_satuan : ""%></label></td></tr>
        <tr><td><label>Deskripsi</label></td><td><label><%= obj != null ? obj.deskripsi : ""%></label></td></tr>
    </table>
</form>